<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增/编辑码头</h2>
    </div>
    <form action="" method="post" class="form-horizontal">
        <input type="hidden" name="id" id="id" value="{$data['dock_id']}">
        <div class="form-item">
            <label class="item-label">所属港口<span class="check-tips"></span></label>
            <div class="controls">
                <select name="port_id">
                    <notempty name="plist">
                        <volist name="plist" id="vo">
                            <option value ="{$vo.port_id}" <?php if($data['port_id']==$vo['port_id']){ echo 'selected';} ?>>{$vo.port_name}</option>
                        </volist>
                    </notempty>
                </select> 
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">码头名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="dock_name" value="{$data['dock_name']}" placeholder="请填写码头名称">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">加价费用</label>
            <div class="controls">
                <input type="text" class="text input-large" name="dock_price" value="{$data['dock_price']}" placeholder="例如100">
            </div>
        </div>

        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Dock / index')}');
    </script>
</block>
